/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.powerpoint;

import com.bedatadriven.mso.core.MsoHorizontalAnchor;
import com.bedatadriven.mso.core.MsoTriState;
import com.bedatadriven.mso.core.MsoVerticalAnchor;
import com.bedatadriven.mso.core.TextFrame;

/** Wrapper for PowerPoint.TextFrame*/
public class PpTextFrame extends TextFrame {

	protected PpTextFrame() { }

  public native final PpApplication getApplication()/*-{
		return this.Application;
	}-*/;

	protected native final int _getHasText()/*-{
		return this.HasText;
	}-*/;

	public final MsoTriState getHasText(){
		return MsoTriState.valueOf(_getHasText());
	}

	public native final TextRange getTextRange()/*-{
		return this.TextRange;
	}-*/;

	public native final Ruler getRuler()/*-{
		return this.Ruler;
	}-*/;

	protected native final int _getHorizontalAnchor()/*-{
		return this.HorizontalAnchor;
	}-*/;

	public final MsoHorizontalAnchor getHorizontalAnchor(){
		return MsoHorizontalAnchor.valueOf(_getHorizontalAnchor());
	}
	protected native final void _setHorizontalAnchor( int value)/*-{
		this.HorizontalAnchor = value;
	}-*/;

	public final void setHorizontalAnchor(MsoHorizontalAnchor value){
		_setHorizontalAnchor(value.getValue());
	}
	protected native final int _getVerticalAnchor()/*-{
		return this.VerticalAnchor;
	}-*/;

	public final MsoVerticalAnchor getVerticalAnchor(){
		return MsoVerticalAnchor.valueOf(_getVerticalAnchor());
	}
	protected native final void _setVerticalAnchor( int value)/*-{
		this.VerticalAnchor = value;
	}-*/;

	public final void setVerticalAnchor(MsoVerticalAnchor value){
		_setVerticalAnchor(value.getValue());
	}
	public native final int getAutoSize()/*-{
		return this.AutoSize;
	}-*/;

	public native final void setAutoSize(int value)/*-{
		this.AutoSize = value;
	}-*/;

	protected native final int _getWordWrap()/*-{
		return this.WordWrap;
	}-*/;

	public final MsoTriState getWordWrap(){
		return MsoTriState.valueOf(_getWordWrap());
	}
	protected native final void _setWordWrap( int value)/*-{
		this.WordWrap = value;
	}-*/;

	public final void setWordWrap(MsoTriState value){
		_setWordWrap(value.getValue());
	}
	public native final void deleteText()/*-{
		this.DeleteText( );
	}-*/;

}
